/*************************************
 * Created by WebStorm
 * Author : 艾尼亚尔·毛拉吾提
 * QQ : 524155792  WeChat : ainiyar0124
 * Created Time :2025/2/27 14:35
 Desc : 路由守卫
 **************************************/

import type {Router} from 'vue-router';

export function createRouterGuards(router: Router) {
    router.beforeEach(async (_to, _from, next) => {
        next()
    });
    router.afterEach((_to, _, _failure) => {
    });
    router.onError((error) => {
        console.log(error, "路由错误");
    });
}